/**
 * nblog后台函数库
 *
 +-------------------------------------------------
 * @link
 * @copyright
 * @author Haijun Wu <nicholasinlove@126.com>
 +------------------------------------------------- 
 * 
 * $Id: admin.js 67 2011-03-26 13:06:51Z nicholasinlove1986@gmail.com $
 */
 
 

/**
 * 多选框全选
 */
function openAll(obj) {
	var allcheckbox = document.getElementsByTagName("input");//获得所有的复选框
	for (var i = 0; i < allcheckbox.length; i++) {
		var ck = allcheckbox[i];
		if (ck.type == "checkbox" && ck!=obj) {                   
			ck.checked = obj.checked;
		}
	}
}

/**
 * 提交确认
 */
function confirmSubmit(form) {
	var j = 0;
	for (var i=0; i<form.elements.length; i++) {
		if (form.elements[i].name == "key[]") {
			if(form.elements[i].checked ){
				j++;
			}
		}
	}
	if (j == 0) {
		alert("请选择操作对象！");
		return false;
	} else {
		var r = confirm("你确定要删除选中的数据吗？");
		return r == true ? true : false;
	}
}

/**
 * 帮助信息的显隐函数
 */
function showNotice(objId) {
	var obj = document.getElementById(objId);
	
	if (obj) {
		if (obj.style.display != "block") {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
	}
}

$(document).ready(function(){
						   	
	$("#think_run_time").appendTo("#runtime");
	
})
	
